package homework.test4;

import java.util.Arrays;

/*
int [] arr = {88,39,77,56,89,99,59,97};
使用Arrays 工具类 打印数组 排序 求最大值 最小值
 */
public class ArraysTest {
    public static void main(String[] args) {
        int [] arr = {88,39,77,56,89,99,59,97};
        Arrays.sort(arr);

        String str = Arrays.toString(arr);
        System.out.println(str);

        int max = arr[arr.length-1];
        int min = arr[0];
        System.out.println("max = " + max+", min = " + min);

    }
}
